<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>个人主页</title>
    <style>
        /* 全局样式重置与基础设置 */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            line-height: 1.6;
            color: #333;
            background-color: #f8f9fa;
            min-height: 100vh;
        }
        img {
            max-width: 100%;
            height: auto;
            display: block;
        }
        .container {
            width: 100%;
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
        }

        /* 导航栏样式 */
        header {
            background: linear-gradient(135deg, #1a2a6c, #2c3e50);
            color: white;
            position: sticky;
            top: 0;
            z-index: 1000;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        }
        .nav-container {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 1rem 0;
        }
        .logo {
            font-size: 1.8rem;
            font-weight: bold;
            display: flex;
            align-items: center;
        }
        .logo-icon {
            margin-right: 10px;
            font-size: 2rem;
        }
        .nav-toggle {
            display: none;
            background: none;
            border: none;
            color: white;
            font-size: 1.5rem;
            cursor: pointer;
            padding: 5px;
        }
        .nav-links {
            display: flex;
            list-style: none;
        }
        .nav-links li a {
            color: white;
            text-decoration: none;
            padding: 0.5rem 1.5rem;
            font-weight: 500;
            transition: all 0.3s;
            border-radius: 4px;
        }
        .nav-links li a:hover {
            background: rgba(255,255,255,0.1);
        }

        /* 主要内容区域 */
        main {
            padding: 2rem 0;
        }
        .hero {
            background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('https://picsum.photos/1600/600') no-repeat center center;
            background-size: cover;
            color: white;
            text-align: center;
            padding: 10rem 0;
            margin-bottom: 2rem;
        }
        .hero h1 {
            font-size: 2.8rem;
            margin-bottom: 1rem;
            text-shadow: 0 2px 4px rgba(0,0,0,0.5);
        }
        .hero p {
            font-size: 1.4rem;
            max-width: 800px;
            margin: 0 auto;
            text-shadow: 0 1px 2px rgba(0,0,0,0.5);
        }

        .section {
            margin-bottom: 3rem;
        }
        .section-title {
            text-align: center;
            margin-bottom: 2rem;
            color: #2c3e50;
            font-size: 2rem;
            position: relative;
        }
        .section-title:after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 50%;
            transform: translateX(-50%);
            width: 80px;
            height: 4px;
            background: #3498db;
            border-radius: 2px;
        }

        /* 个人简介卡片 */
        .profile-card {
            background: white;
            border-radius: 10px;
            box-shadow: 0 5px 15px rgba(0,0,0,0.08);
            overflow: hidden;
            max-width: 800px;
            margin: 0 auto;
            padding: 2rem;
        }
        .profile-header {
            display: flex;
            align-items: center;
            margin-bottom: 1.5rem;
        }
        .profile-image {
            width: 120px;
            height: 120px;
            border-radius: 50%;
            margin-right: 1.5rem;
            object-fit: cover;
        }
        .profile-info h2 {
            font-size: 2rem;
            margin-bottom: 0.5rem;
            color: #2c3e50;
        }
        .profile-info p {
            color: #7f8c8d;
            font-size: 1.1rem;
        }

        /* 项目网格 */
        .projects-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            gap: 1.5rem;
        }
        .project-card {
            background: white;
            border-radius: 10px;
            box-shadow: 0 5px 15px rgba(0,0,0,0.08);
            overflow: hidden;
            transition: all 0.3s ease;
        }
        .project-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 8px 20px rgba(0,0,0,0.15);
        }
        .project-img {
            height: 200px;
            width: 100%;
            object-fit: cover;
        }
        .project-content {
            padding: 1.5rem;
        }
        .project-content h3 {
            margin-bottom: 0.75rem;
            color: #2c3e50;
        }
        .project-content p {
            color: #7f8c8d;
            font-size: 0.95rem;
        }

        /* 联系信息 */
        .contact-info {
            background: #eef2f7;
            border-radius: 10px;
            padding: 2rem;
            margin: 2rem 0;
            text-align: center;
        }
        .contact-info p {
            color: #2c3e50;
            font-size: 1.1rem;
            margin-bottom: 1rem;
        }

        /* 页脚 */
        footer {
            background: #2c3e50;
            color: white;
            text-align: center;
            padding: 1.5rem 0;
            margin-top: 2rem;
        }

        /* 响应式设计 */
        @media (max-width: 992px) {
            .hero h1 {
                font-size: 2.2rem;
            }
            .hero p {
                font-size: 1.2rem;
            }
        }

        @media (max-width: 768px) {
            .nav-toggle {
                display: block;
            }
            .nav-links {
                position: absolute;
                top: 100%;
                left: 0;
                width: 100%;
                background: #2c3e50;
                flex-direction: column;
                align-items: center;
                padding: 0;
                transform: translateY(-100%);
                transition: transform 0.3s;
                z-index: 999;
            }
            .nav-links.active {
                transform: translateY(0);
            }
            .nav-links li {
                width: 100%;
                text-align: center;
            }
            .nav-links li a {
                padding: 0.8rem 0;
                display: block;
            }
            .hero h1 {
                font-size: 2rem;
            }
            .section-title {
                font-size: 1.7rem;
            }
            .projects-grid {
                grid-template-columns: 1fr;
            }
        }

        @media (max-width: 480px) {
            .hero h1 {
                font-size: 1.8rem;
            }
            .hero p {
                font-size: 1rem;
            }
        }
    </style>
</head>
<body>
    <header>
        <div class="container">
            <div class="nav-container">
                <div class="logo">
                    <img src="https://dashscope-result-wlcb-acdr-1.oss-cn-wulanchabu-acdr-1.aliyuncs.com/1d/6c/20251010/5020e443/31566aa5-ee9c-49b9-acd4-dd5626041a3b1031892550.png?Expires=1760118352&OSSAccessKeyId=LTAI5tKPD3TMqf2Lna1fASuh&Signature=tNm0pZR9Gb7Epi5PaAk2944zkJE%3D" alt="个人主页Logo" style="width: 40px; height: 40px; margin-right: 10px;">
                    个人主页
                </div>
                <button class="nav-toggle" id="navToggle">☰</button>
                <ul class="nav-links" id="navLinks">
                    <li><a href="#home">首页</a></li>
                    <li><a href="#about">关于</a></li>
                    <li><a href="#projects">项目</a></li>
                    <li><a href="#contact">联系</a></li>
                </ul>
            </div>
        </div>
    </header>

    <main class="container">
        <section class="hero" id="home">
            <h1>欢迎来到我的个人主页</h1>
            <p>这里是展示我作品和技能的空间，探索我的技术旅程</p>
        </section>

        <section class="section" id="about">
            <h2 class="section-title">关于我</h2>
            <div class="profile-card">
                <div class="profile-header">
                    <img src="https://picsum.photos/400/400" alt="个人照片" class="profile-image">
                    <div class="profile-info">
                        <h2>张三</h2>
                        <p>全栈开发者 | 技术爱好者 | 创造者</p>
                    </div>
                </div>
                <p>我是一名充满热情的全栈开发者，专注于构建优雅且高效的Web应用。拥有多年开发经验，精通前端和后端技术，致力于将复杂的技术转化为简单易用的产品。我喜欢解决挑战性问题，不断学习新技术，并乐于分享知识。</p>
                <p>在业余时间，我喜欢阅读技术书籍、参加技术会议，以及开源项目的贡献。我相信持续学习是技术发展的核心动力。</p>
            </div>
        </section>

        <section class="section" id="projects">
            <h2 class="section-title">我的项目</h2>
            <div class="projects-grid">
                <article class="project-card">
                    <img src="https://picsum.photos/300/200?random=1" alt="项目1" class="project-img">
                    <div class="project-content">
                        <h3>智能任务管理应用</h3>
                        <p>一个基于React和Node.js的现代化任务管理工具，支持多用户协作和实时同步功能。</p>
                    </div>
                </article>
                <article class="project-card">
                    <img src="https://picsum.photos/300/200?random=2" alt="项目2" class="project-img">
                    <div class="project-content">
                        <h3>在线教育平台</h3>
                        <p>一个完整的在线学习系统，包含课程管理、视频播放、测验评估等功能模块。</p>
                    </div>
                </article>
                <article class="project-card">
                    <img src="https://picsum.photos/300/200?random=3" alt="项目3" class="project-img">
                    <div class="project-content">
                        <h3>数据分析可视化仪表板</h3>
                        <p>使用D3.js构建的数据可视化工具，帮助用户直观理解复杂数据集。</p>
                    </div>
                </article>
            </div>
        </section>

        <section class="section" id="contact">
            <h2 class="section-title">联系我</h2>
            <div class="contact-info">
                <p>如果您有任何合作机会或想了解更多信息，请随时与我联系！</p>
                <p>📧 zhangsan@example.com</p>
                <p>📱 +86 138-XXXX-XXXX</p>
                <p>📍 北京市朝阳区</p>
            </div>
        </section>
    </main>

    <footer>
        <div class="container">
            <p>&copy; 2023 个人主页. 保留所有权利.</p>
        </div>
    </footer>

    <script>
        // 导航菜单切换功能
        const navToggle = document.getElementById('navToggle');
        const navLinks = document.getElementById('navLinks');
        
        navToggle.addEventListener('click', () => {
            navLinks.classList.toggle('active');
        });

        // 为导航链接添加平滑滚动
        document.querySelectorAll('a[href^="#"]').forEach(anchor => {
            anchor.addEventListener('click', function(e) {
                e.preventDefault();
                document.querySelector(this.getAttribute('href')).scrollIntoView({
                    behavior: 'smooth'
                });
            });
        });
    </script>
</body>
</html>